home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper UK 157: 25,000 Clip Art Images / Computer Shopper Issue 157 - 25,000 Clip Art Images.iso / slackware / FAQ.TXT < prev    next >
Text File  |  2000-12-07  |  32KB  |  761 lines

  1.  
  2. These are questions people ask me quite often.  Hopefully now that they're
  3. answered here that won't be the case.
  4.  
  5. Many of these questions are old and obsolete, but I leave them in here because
  6. they might give somebody ideas about how to approach similar problems.  Also,
  7. you'll notice that several of these aren't even phrased as questions, but are
  8. more like screaming complaints.  Hey, I wanted to be accurate. :^)
  9.  
  10. Q1: After installation, my ethernet, CDROM drive, and/or other hardware that I
  11.    thought Linux supported doesn't work.  Why?
  12. Q2: Is it possible to install this operating system without a floppy drive?
  13. Q3: Now that the N series doesn't fit on floppy disks, how do I get network
  14.     support into my laptop?
  15. Q4: Why isn't my Sony CDU-31/33a detected by Linux anymore?  It used to work!
  16. Q5: I can't get the kernel to see a CDROM connected to a Soundblaster 16 IDE!
  17. Q6: I can't get the disks made by RAWRITE to boot!
  18. Q7: I was able to install fine, but the installed system won't boot!
  19. Q8: Why do I get "network unreachable" under Slackware?
  20. Q9: Why the $%#@! isn't my UltraStor SCSI detected? It works under DOS!
  21. Q10: If the setup menus for NFS installation don't work, how can I setup the
  22.      network manually before starting setup?
  23. Q11: My IBM Thinkpad won't load the rootdisk into a ramdisk correctly, so I
  24.      can't install Linux.  What can I do?
  25. Q12: My large (> 1/2 gig) IDE drive reports more than 16 heads, and as a
  26.      result Linux won't install on it. What can I do?
  27. Q13: How do I make a Slackware bootdisk with this new kernel I made?
  28. Q14: My backspace is acting strangely under X?  How can I fix it?
  29. Q15: I just built a new kernel. Now how to I go about replacing my existing
  30.      kernel with this new bzImage file?
  31. Q16: Why can't I cut and paste from elvis (vi) in an xterm?
  32. Q17: Why doesn't my bus mouse work? The kernel, selection, the
  33.      X server and test-mouse all say "no such device."
  34. Q18: I see my SoundBlaster/Panasonic CD-ROM detected at boot, but I can't
  35.      install from it or mount it. What's going on?
  36. Q19: I'm using UMSDOS and would like to use the same swapspace under Windows
  37.      and Linux. Can this be done?
  38. Q20: What's the password for root on the install disk?
  39. Q21: How can I install and remove software now that the Slackware Linux
  40.      distribution is installed on my machine?
  41. Q22:  How do I know what files setup/pkgtool/installpkg is putting where?
  42. Q23: I set my partitions to "Linux native" but Slackware still won't detect
  43.      them! What can I do?
  44. Q24: I have a (PS/1 || Valuepoint || Thinkpad), and can't install because fdisk
  45.      can't see my hard drive. How can I get around this?
  46. Q25: Why do my /etc/issue and /etc/motd keep resetting themselves at boot time?
  47. Q26: Emacs dumps core, complains of a missing library, or lacks X11 support!
  48. Q27: Why do my compiles sometimes die with 'signal 11: internal compiler error'?
  49. Q28: How can I change (or get rid of) the color ls?
  50. Q29: I start X with "startx" and it works OK, but I can't switch virtual
  51.      consoles. Why?
  52. Q30: Why can't I use the new ghostscript with X?
  53. Q31: I can't get anything to work at all! What's the deal?
  54. Q32: How do I make a bootdisk that uses a custom kernel?
  55. Q33: When I installed Slackware, the system could see my CD-ROM just fine.  But,
  56.      when I try to boot using LILO or the bootdisk the system doesn't find the
  57.      CD-ROM drive anymore!  How can I fix this?
  58. Q34: Can I install using a console on a serial port?
  59. Q35: What does "Bus error" mean?
  60.  
  61. -----
  62.  
  63. Q1: After installation, my ethernet, CDROM drive, and/or other hardware that I
  64.    thought Linux supported doesn't work.  Why?
  65.  
  66. A: Probably because the kernel you're running doesn't contain the support. 
  67.    To fix the problem, you'll have to install a kernel that does.  There might
  68.    a suitable kernel in the /kernels directory on the CDROM, or you can compile
  69.    a custom kernel for your machine.  This isn't too difficult -- see the 
  70.    instructions below about compiling a new kernel.  
  71.  
  72.    You can also try loading the device driver in the form of a kernel module.
  73.    There are drivers for nearly all the hardware supported by Linux in the
  74.    /modules directory on the CDROM, or in your /lib/modules directory if you've
  75.    installed the modules.tgz package.  Take a look at your /etc/rc.d/rc.modules
  76.    file for examples of how to load these.
  77.  
  78. -----
  79.  
  80. Q2: Is it possible to install this operating system without a floppy drive?
  81.  
  82. A: Yes!  And it's not much harder, either.
  83.  
  84. First, you'll need a DOS partition.  Install Loadlin in a directory such
  85. as C:\LOADLIN (the Loadlin package is available as a ZIP file in the kernels/
  86. directory).  Once you have Loadlin installed, you'll need to copy a Linux
  87. kernel and a Slackware rootdisk image into the C:\LOADLIN directory.  We'll
  88. describe this process next:
  89.  
  90. You can find many kernels in the kernels/ directory on the CD.  The 
  91. subdirectories have the same names as the Slackware bootdisks, and contain
  92. the kernel used to make that bootdisk.  You might want to refer to the README
  93. files in a bootdisks directory (such as bootdsks.144/) to decide which kernel 
  94. will work best for your system.  Once you've picked a kernel (zImage or 
  95. bzImage), copy it into the C:\LOADLIN directory.  Next, select a rootdisk image
  96. from the rootdsks/ directory, such as the color rootdisk image (color.gz).
  97. Copy the file into your Loadlin directory.
  98.  
  99. Now, to start the installation process you'll need to boot DOS.  If you run
  100. Windows95, restarting the computer in MS-DOS mode is an option on the Start
  101. button menu.  (NOTE:  If you miss the good-old-days when you got DOS 
  102. automatically when you booted your computer and had to type "win" to actually
  103. start Windows, it's easy to fix Windows95 to work that way again.  Edit the 
  104. file C:\MSDOS.SYS and change where it says BootGUI=1 to read BootGUI=0)
  105.  
  106. Once you have DOS started, change into the Loadlin directory and use a command
  107. like this one to start the installation rootdisk:
  108.  
  109. loadlin zimage rw root=/dev/ram initrd=color.gz load_ramdisk=1
  110.  
  111. Usually the installation copies the kernel from the bootdisk, so when you use
  112. this method you'll have to skip that menu, as well as the bootdisk creation
  113. menu.  It's also advisable to skip the LILO menu, since the /vmlinuz will
  114. probably not be the one you want.  You best bet is to use Loadlin, since it's
  115. gotten you this far.  Just edit the LINUX.BAT file to point to your root Linux
  116. partition.
  117.  
  118. -----
  119.  
  120. Q3: Now that the N series doesn't fit on floppy disks, how do I get network
  121.     support into my laptop?
  122.  
  123. A:  Start by installing the A series.  Then, put the tcpip1.tgz package from
  124.     the N series on a floppy disk.  If your kernel doesn't contain network
  125.     support, put the netmods.tgz (network kernel modules) package on another
  126.     disk.  If you need PPP, put the PPP package on there, too.  Then, (after
  127.     rebooting, not from the setup floppies) run "pkgtool".  Choose the 
  128.     "Install packages from floppy disks" choice, and install the tcpip1.tgz
  129.     netmods.tgz, and ppp.tgz packages.  Then run netconfig to set up your
  130.     network, pppsetup to configure ppp, and edit /etc/rc.d/rc.modules to load
  131.     support for your ethernet card.  When you reboot, the machine should be
  132.     network-capable, and you can proceed to add more software from there.
  133.  
  134. -----
  135.  
  136. Q4: Why isn't my Sony CDU-31/33a detected by Linux anymore?  It used to work!
  137.  
  138. A: From the source code:
  139.  
  140.  + * WARNING -   All autoprobes have been removed from the driver.
  141.  + *             You MUST configure the CDU31A via a LILO config
  142.  + *             at boot time or in lilo.conf.  I have the
  143.  + *             following in my lilo.conf:
  144.  + *
  145.  + *                append="cdu31a=0x1f88,0,PAS"
  146.  + *
  147.  + *             The first number is the I/O base address of the
  148.  + *             card.  The second is the interrupt (0 means none).
  149.  + *             The third should be "PAS" if on a Pro-Audio
  150.  + *             spectrum, or nothing if on something else.
  151.  
  152. You can also use this option with Loadlin:
  153.  
  154. C:\LOADLIN\LOADLIN C:\LINUX\VMLINUZ root=/dev/hda1 cdu31a=0x1f88,0,PAS
  155.  
  156. Or, on the bootdisk LILO: prompt.  Examples:
  157.  
  158. LILO: ramdisk cdu31a=0x1f88,0,PAS
  159.  
  160. LILO: mount root=/dev/sda1 cdu31a=0x1f88,0,PAS ro
  161.  
  162. -----
  163.  
  164. Q5: I can't get the kernel to see a CDROM connected to a Soundblaster 16 IDE!
  165.  
  166. A: First, be sure you're using the proper kernel -- the one needed in this
  167.    case is the IDE/ATAPI CDROM type, not the SBPCD type.  Then, if you still
  168.    have problems, use the secondary IDE channel (IRQ 15 0x170), and make sure
  169.    the drive is set as master (jumper in the back) and not as slave (a common
  170.    default).
  171.  
  172. -----
  173.  
  174. Q6: I can't get the disks made by RAWRITE to boot!
  175.  
  176. A: First, check that you're using the right size image.  If you use an image
  177.    meant for a 1.44 MB floppy on a 1.2 MB floppy (or vice-versa) you'll likely
  178.    see the message "LI" and the boot process will hang.
  179.  
  180.    Another possibility is a BIOS problem -- a user has reported to me that
  181.    RAWRITE fails on his machine unless he first does "dir a:" on an MS-DOS
  182.    floppy.  Apparently this is caused by the BIOS improperly initializing
  183.    address 0000:0526 (number of sectors) to 11h instead of 12h.  Using "dir"
  184.    on the device fixes that value.  The affected machine in this case was using
  185.    "Mr. BIOS" from Unicore Software. 
  186.  
  187. -----
  188.  
  189. Q7: I was able to install fine, but the installed system won't boot!
  190.  
  191. A: Slackware uses stripped down kernels to do the actual installation -- in
  192.    other words, the kernels don't have any more drivers than needed to control
  193.    only the device needed to complete the installation.  If you don't install
  194.    the bootdisk kernel, it's possible to install with (for example) the bare.i
  195.    IDE bootdisk, but install the SCSI kernel from the A series onto your
  196.    hard drive.  Since this kernel is has many SCSI drivers built-in, this can
  197.    lead to hangs at boot time if the kernel misidentifies a piece of hardware
  198.    that's unusual or at a non-standard port/IRQ.
  199.  
  200.    When this happens, you need to try a different kernel.  First, use the
  201.    bootdisk that worked during installation to get your system started.  To
  202.    do this, boot the disk and enter something like this at the LILO prompt:
  203.  
  204.    mount root=/dev/sda2
  205.  
  206.    (if /dev/sda2 is your root Linux partition, otherwise use the appropriate
  207.    device name for your system)
  208.  
  209.    Once you've got the system running, install or compile a different kernel.
  210.    Try to include only the device drivers you need for your hardware.  
  211.  
  212.    Instructions on compiling the kernel can be found in your kernel source
  213.    directory (if you installed the kernel source, that is).  The kernel
  214.    source is usually found in /usr/src/linux.
  215.  
  216.    Briefly, this is the method for building a new kernel:
  217.  
  218.    cd /usr/src/linux
  219.    make config   (then answer the questions about what you need)
  220.    make dep ; make clean ; make zImage
  221.  
  222.    If the zImage is successfully built, see an answer below which explains
  223.    how to install it with LILO or Loadlin, or make a new bootdisk from it.
  224.    Once you've done that, you might want to clean up /usr/src/linux by cd'ing
  225.    into it and doing another 'make clean'.
  226.  
  227.    Good luck!  If you can handle this, you're well on your way to becoming a
  228.    Linux guru.
  229.  
  230. -----
  231.  
  232. Q8: Why do I get "network unreachable" under Slackware?
  233.  
  234. A: There are a couple of possibilities. For most users, things work right out
  235.    of the box. However, if you're running into this problem here are two
  236.    workarounds you can try:
  237.  
  238.    1. Reverse the broadcast and netmask arguments (and their variables)
  239.       in the call to ifconfig in /etc/rc.d/rc.inet1. Make sure you are
  240.       not trying to route your own IP address - you shouldn't have to.
  241.  
  242.    2. Make sure /etc/networks is properly configured.
  243.  
  244.    3. You may want to try the 'netconfig' script.
  245.       It's not perfect, but does a pretty good job. 
  246.  
  247.    4. Make sure the kernel you're using supports your hardware.  Most of the
  248.       kernels provided with Slackware include a /boot/config file where you
  249.       can look up the compilation options.
  250.  
  251. -----
  252.  
  253. Q9: Why the $%#@! isn't my UltraStor SCSI detected? It works under DOS!
  254.  
  255. A: Set the I/O address to 0x340 instead to 0x330.
  256.  
  257.    For any hardware that doesn't work, a good rule is to try playing around
  258.    with the IRQ and I/O settings on it to see what happens. If your system
  259.    is up and running and you're having problems with a CD-ROM or tape or
  260.    something like this, you can always look around for the driver source in
  261.    /usr/src/linux/drivers... really, it won't bite!  Often, the source 
  262.    contains important documentation, such as the default IRQ settings for
  263.    that type of device, and the major number for the entry in /dev. Also,
  264.    try other bootdisks and see if that helps.
  265.  
  266. -----
  267.  
  268. Q10: If the setup menus for NFS installation don't work, how can I setup the
  269.      network manually before starting setup?
  270.  
  271. A: Once your Linux machine is listed in the hosts /etc/exports (if the whole
  272.    network is not already), you might need to do these things before running
  273.    setup.  This is usually only needed if the NFS server is on a different
  274.    subnet than your Linux machine:
  275.  
  276.  # Setup the loopback device:
  277.  ifconfig lo 127.0.0.1
  278.  route add -net 127.0.0.0
  279.  
  280.  # Setup the network:
  281.  ifconfig eth0 1.2.3.4        # 1.2.3.4 is the ip number of my machine.
  282.  route add -net 1.2.3.0
  283.  route add default gw 1.2.3.1 # in this example, the ip address of our NFS 
  284.                              # server is 1.2.31.4 and belongs to a different
  285.                              # network.
  286.  
  287. -----
  288.  
  289. Q11: My IBM Thinkpad won't load the rootdisk into a ramdisk correctly, so I 
  290.      can't install Linux.  What can I do?
  291.  
  292. A: The disk-changed sensor on some older Thinkpads works a little differently.
  293.    This can be worked around -- just specify "floppy=thinkpad" when booting:
  294.  
  295.    boot:  ramdisk floppy=thinkpad
  296.  
  297.    ... on the bootdisk's LILO prompt.
  298.  
  299. -----
  300.  
  301. Q12: My large (> 1/2 gig) IDE drive reports more than 16 heads, and as a 
  302.      result Linux won't install on it. What can I do?
  303.  
  304. A: See the file /docs/mini/Large-IDE for instructions on how to make it work.
  305.    (Thanks to Bob DiMarco for forwarding this to me, and Patrick LoPresti for
  306.    compiling the information in the first place)
  307.  
  308.    Note that newer kernels (> 1.1.40) will do this translation for you 
  309.    automatically, and thus make the workaround unnecessary.
  310.  
  311. -----
  312.  
  313. Q13: How do I make a Slackware bootdisk with this new kernel I made?
  314.  
  315. A: OK, well you grab an existing one (preferably one of the larger ones
  316.    like "scsinet.s"), put it on a floppy, and do this:
  317.  
  318.    mount /dev/fd0 /mnt (this mounts it)
  319.    cat zImage > /mnt/vmlinuz (put the new kernel in place)
  320.    rdev -R /mnt/vmlinuz 0    (mount read-write)
  321.    rdev /mnt/vmlinuz /dev/fd0u1440   (use that drive, or /dev/fd0h1200)
  322.    rdev -r /mnt/vmlinuz 49152  (enable the ramdisk)
  323.    lilo -r /mnt  (reinstall lilo)
  324.    umount /mnt   (that's it! you're done! :^)
  325.  
  326. -----
  327.  
  328. Q14: My backspace is acting strangely under X?  How can I fix it?
  329.  
  330. A: Well, I've never noticed a real problem, but I occasionally hear 
  331.    about this.  You might want to try adding this to your .Xmodmap in
  332.    /usr/X11/lib/X11/xinit or $HOME:
  333.  
  334. keycode 22 = BackSpace
  335.  
  336. -----
  337.  
  338. Q15: I just built a new kernel. Now how to I go about replacing my existing
  339.      kernel with this new bzImage file?
  340.  
  341. A: First, you must prepare the new kernel. If you're using UMSDOS, you'll want 
  342.    your system to boot read-write. Otherwise, you'll want it to boot read-only
  343.    so your filesystems can be safely checked. So, do this:
  344.  
  345.    For UMSDOS:
  346.       rdev -R bzImage 0
  347.    For any other filesystem type:
  348.       rdev -R bzImage 1
  349.  
  350.    Then, you'll need to set the root partition. For example, if your root 
  351.    Linux partition is /dev/hda2, you'd do this:
  352.  
  353.       rdev bzImage /dev/hda2
  354.  
  355.    Then, you can set a video mode if you like. As an example, this sets normal
  356.    80x25 console mode:
  357.  
  358.       rdev -v bzImage -1
  359.  
  360.    Other modes include:  -3 = Prompt, -2 = Extended VGA. You might need to 
  361.    remove a line in your /etc/lilo.conf that forces normal video if you use
  362.    LILO and wish to try an extended video mode.
  363.  
  364.    Next, you need to install the kernel. If you boot from a floppy disk, you
  365.    can simply stick a formatted floppy into your drive and write the bzImage
  366.    to it like this:
  367.  
  368.    cat bzImage > /dev/fd0
  369.  
  370.    If you use lilo, you should copy the bzImage to where your lilo.conf expects
  371.    it to be (probably /vmlinuz) and then reinstall lilo.  This should work ifi
  372.    you used Slackware's liloconfig script to set up LILO. (this is the script 
  373.    setup uses)
  374.  
  375.    cp bzImage /vmlinuz ; lilo
  376.   
  377.    You may wish to back up your existing /vmlinuz first.
  378.  
  379.    If you use Loadlin, copy the kernel to your DOS partition where Loadlin can
  380.    see it (if you use UMSDOS, you won't need to do this).  Then, start Linux
  381.    from DOS like this:  
  382.  
  383.      c:\loadlin\loadlin.exe c:\linux\vmlinuz root=/dev/hda2
  384.  
  385.    That should do it.
  386.    
  387. -----
  388.  
  389. Q16: Why can't I cut and paste from elvis (vi) in an xterm?
  390.  
  391. A: Later versions of elvis use the mouse for cursor positioning instead. If
  392.    you want to cut and paste, hold the left shift key down while you use the
  393.    mouse.
  394.  
  395. -----
  396.  
  397. Q17: Why doesn't my bus mouse work? The kernel, selection, the
  398.      X server and test-mouse all say "no such device."
  399.  
  400. A: The kernels distributed with Slackware don't have the drivers for
  401.    busmice compiled in. Last time I tried to include all of them there
  402.    were horrible driver conflicts -- better to leave them out if they
  403.    can't coexist.  Obviously, it's not feasible for me to provide 
  404.    versions of every precompiled kernel for each type of busmouse. I 
  405.    only have a 386. ;^)
  406.  
  407.    (I'm only kidding,  As of 3/1999, I'm running a P2-450)
  408.  
  409.    The solution is to load support for your mouse from a kernel module.
  410.    Edit /etc/rc.d/rc.modules and uncomment the line for your mouse:
  411.  
  412.    # Mouse support:
  413.    #/sbin/modprobe atixlmouse
  414.    #/sbin/modprobe busmouse
  415.    #/sbin/modprobe msbusmouse
  416.  
  417.    (To uncomment a line in a shell script, you use an editor to remove the
  418.    '#' from the start of the line)
  419.  
  420. -----
  421.  
  422. Q18: I see my SoundBlaster/Panasonic CD-ROM detected at boot, but I can't
  423.      install from it or mount it. What's going on?
  424.  
  425. A. Try setting to drive's ID to 0. This is expected by the install disks.
  426.    There should be a jumper on the back of the drive that selects this --
  427.    just move it to the leftmost position.
  428.  
  429. -----
  430.  
  431. Q19: I'm using UMSDOS and would like to use the same swapspace under Windows
  432.      and Linux. Can this be done?
  433.  
  434. A: If you want to share a Linux-UMSDOS swapfile with MS-Windows, you can
  435.    do the following:
  436.  
  437.    1. Create PERMANENT(!) swap file in MS-Windows with size NNNN kbytes.
  438.    2. In /etc/rc.d/rc.local add the following lines:
  439.  
  440.    rm -f /DOS/windows/spart.par  <--- Needed in order to suppress
  441.                                       Windows complain on next start!
  442.    mkswap /DOS/386spart.par NNNN
  443.    sync
  444.    swapon /DOS/386spart.par
  445.  
  446.    3.In /etc/rc.d/rc.0 add "swapoff" for this file.
  447.  
  448. -----
  449.  
  450. Q20: What's the password for root on the install disk?
  451.  
  452. A: There isn't one. If you're asked for one, it usually means that you
  453.    don't have enough memory to install.
  454.  
  455.    To help work around this, look in your CMOS settings and make sure you don't
  456.    have any ROM shadowing enabled. ROM shadowing wastes memory and won't
  457.    improve the performance of Linux. Also, make sure you're using the smallest
  458.    bootdisk you can. For example, you don't need to use "scsinet" if
  459.    you're not installing to a SCSI drive via NFS. Use something small -- the
  460.    "bare" disk if you can get away with it. Some people mistakenly think they
  461.    need to use a bootdisk with network drivers if they plan to use
  462.    networking after installation. Not so! The drivers on the bootdisk
  463.    have no impact on what you can use *after* installation -- in almost all
  464.    cases you won't be running the same kernel on your installed system as
  465.    you used to install it.
  466.  
  467. -----
  468.  
  469. Q21: How can I install and remove software now that the Slackware Linux 
  470.      distribution is installed on my machine?
  471.  
  472. A: To remove packages, type "pkgtool" and follow the prompts. Pkgtool will
  473.    also allow you to add packages that are in the current directory.
  474.  
  475.    The preferred way to install software is with the "setup" script.
  476.    When you do your initial installation, setup puts a copy of itself in your 
  477.    /sbin for future use. You can also add software to your machine using the 
  478.    boot/install disk, if you really want to. 
  479.  
  480.    When adding software to a running system via NFS, it is preferable to
  481.    mount the partition yourself and then use the 'install from a mounted
  482.    directory' feature of setup.
  483.  
  484.    There are also command line utilities that allow you to create, install,
  485.    and remove packages. For these, you should refer to the manpages:
  486.    installpkg(8), removepkg(8), makepkg(8), explodepkg(8). A simple example
  487.    of how you would install a package with installpkg:
  488.  
  489.    installpkg package.tgz
  490.  
  491. -----
  492.  
  493. Q22:  How do I know what files setup/pkgtool/installpkg is putting where?
  494.  
  495. A.  Look around in /var/adm/packages.
  496.     Similarly, you can find installation scripts for each package in 
  497.     /var/adm/scripts.
  498.  
  499. -----
  500.  
  501. Q23: I set my partitions to "Linux native" but Slackware still won't detect
  502.      them! What can I do?
  503.  
  504. A: This problem is rare and I still don't know what causes it.
  505.  
  506.    [ Note that this is not the same problem that usually affects the IBM PS/1,
  507.    Thinkpad, and similar machines that do not detect the harddrive. If you've
  508.    got one of these machines, and fdisk is giving you problems, your answer is
  509.    still ahead :^) ]
  510.  
  511.    Here's a workaround you can use to install anyway:
  512.  
  513.    1. Start text.gz using one of the bootdisks.
  514.    2. Make and format partitions for Linux.
  515.    3. Mount the target partitions under /mnt.
  516.    4. Type "setup -target_mounted"
  517.    5. Follow the rest of the instructions to install.
  518.    6. Type "vi /mnt/etc/fstab" and enter an appropriate fstab.
  519.       As an example, here's what mine contains:
  520.  
  521. /dev/hdb2   swap    swap   defaults 
  522. /dev/hda2   /       ext2   defaults
  523. /dev/hda3   /usr    xiafs  defaults 
  524. /dev/hda1   /dos    msdos  defaults 
  525. /dev/hdb1   /os2    msdos  defaults 
  526. none        /proc   proc   defaults
  527.  
  528.    To give you some more info about this file, the first field is the
  529.    partition to be mounted, the second is where it should be mounted, the
  530.    third is the filesystem type, and the last field is the options to use.
  531.    Unless you're a Linux wizard, just set this to "defaults".
  532.  
  533.    Other things to remember about this file:
  534.       - Make sure that you list the root partition before any other partitions
  535.         that are mounted beneath it.
  536.       - Add the /proc line, or "ps", "w", etc, won't work.
  537.       - It's a good idea to put a blank line at the end of the file, as I've
  538.         had reports that partitions listed on the last line might not be 
  539.         mounted.
  540.  
  541.    7. Once you've made and saved this file you can reboot with ctrl-alt-delete.
  542.  
  543. -----
  544.  
  545. Q24: I have a (PS/1 || Valuepoint || Thinkpad), and can't install because fdisk
  546.      can't see my hard drive. How can I get around this?
  547.  
  548. A: You'll need to enter your drive parameters at the bootdisk prompt. You
  549.    can even specify the geometry for your second IDE drive by supplying a
  550.    second  hd= parameter right after the first one. 
  551.  
  552.    When you boot the bootdisk, you'll see more information about the
  553.    format used to pass your drive parameters to the kernel at the LILO prompt
  554.    and allow your drive to be recognized.
  555.  
  556.    You'll have to edit your lilo.conf file to add a similar hd= flag if you
  557.    want LILO to work. Add this as the TOP line in the file:
  558.  
  559.    append="hd=cyl,hds,secs"
  560.  
  561.    Where "cyl", "hds", and "secs" are the number of cylinders, sectors,
  562.    and heads on the drive.
  563.  
  564.    If you have two IDE drives, specify both drives (like this):
  565.  
  566.    append="hd=967,13,31 hd=944,14,40"
  567.  
  568. -----
  569.  
  570. Q25: Why do my /etc/issue and /etc/motd keep resetting themselves at boot time?
  571.  
  572. A: The /etc/rc.d/rc.S resets them out every time you boot after figuring out
  573.    which kernel you're running -- otherwise the kernel version printed at login
  574.    might not stay current.
  575.  
  576.    If you want to write your own /etc/issue and /etc/motd, you need to comment
  577.    out that part of /etc/rc.d/rc.S.
  578.  
  579. -----
  580.  
  581. Q26: Emacs dumps core, complains of a missing library, or lacks X11 support!
  582.  
  583. A: The GNU Emacs series includes your choice of a version with X11 support, or
  584.    one without. Make sure you have the right binary for your machine. 
  585.  
  586.    The binary supporting X11 is installed as part of a package on the first 
  587.    disk that you'll need to install whether you want X11 support or not. If
  588.    you DO NOT want X11 support, install the package 'emac_nox.tgz' on the last
  589.    disk of the Emacs series.
  590.  
  591.    If you just install all of the disks, you don't get X11 support. It had to
  592.    be one way or the other, so if you're not paying attention when you install
  593.    at least this way it will run no matter what.
  594.  
  595. -----
  596.  
  597. Q27: Why do my compiles sometimes die with 'signal 11: internal compiler error'?
  598.  
  599. A: This indicates a hardware problem in about 99% of the cases. It can usually
  600.    be fixed by increasing the number of wait states in the CMOS settings. It
  601.    can almost always be fixed by turning off the RAM cache, but this should be
  602.    your last resort since it will cause a noticeable slowdown.
  603.  
  604.    Another common reason for this problem is heat, particularly in the case
  605.    of an overclocked CPU.  I've had some machines suffer from this over
  606.    the years, especially under heavy load.  If the signal 11 problem seems
  607.    more common when the machine's been running for a while, it could well be
  608.    heat-related.  Try running the machine with the case open.  If that doesn't
  609.    seem to help, aim a fan at the motherboard.  (I've had to run machines
  610.    containing hot-running SCSI drives this way for their entire lives)  A
  611.    quality CPU fan helps a lot, too.  If you have an underpowered fan/heatsink,
  612.    consider a replacement from TennMax (www.TennMax.com).  I've had excellent
  613.    results with their fans.  (a dual-fan model stabilized my P2-450)
  614.  
  615.    For more information on causes and cures of the signal 11 problem, see the
  616.    latest version of the Signal 11 FAQ at http://www.bitwizard.nl/sig11/
  617.  
  618.    The French translation can be found at:
  619.                             http://www.linux-france.com/article/sig11fr/
  620.  
  621. -----
  622.  
  623. Q28: How can I change (or get rid of) the color ls?
  624.  
  625. A: Read the man page, and check out the file /etc/DIR_COLORS. You can
  626.    configure the colors any way you like, or shut them off entirely. Also, you
  627.    can copy /etc/DIR_COLORS into your home directory as '.dir_colors' to 
  628.    override the global defaults on a user by user basis.
  629.  
  630. -----
  631.  
  632. Q29: I start X with "startx" and it works OK, but I can't switch virtual
  633.      consoles. Why?
  634.  
  635. A: On a Linux text screen, you switch virtual consoles with Alt-F1 through 
  636.    Alt-F8. Under XFree-86, you must use Ctrl-Alt-F1 through Ctrl-Alt-F8. 
  637.    Another useful 'secret' key combination is RightShift-PgUp/PgDown for
  638.    scrollback. (a random amount ranging from none to a few pages, depending
  639.    on the state of your video text buffer memory)
  640.  
  641. -----
  642.  
  643. Q30: Why can't I use the new ghostscript with X?
  644.  
  645. A: Make sure you have gs_x11.tgz from disk XAP1 installed.
  646.  
  647. -----
  648.  
  649. Q31: I can't get anything to work at all! What's the deal?
  650.  
  651. A: If you seem to suffer catastrophic failure (!), then check the file FILE_LIST
  652.    on ftp.freesoftware.com in /pub/slackware against the contents of your disks
  653.    and make sure you're not missing any files. 
  654.  
  655.    Also, I've noticed that most of the reports of kernel panics and system 
  656.    hangs have come from people with 4MB. If you're running into these types
  657.    of problems I'd suggest forking over the $$$ for 4 more meg. I have 8 MB of
  658.    RAM and never have crashes. (well, only when I really push my luck)
  659.    If you don't want to do that, then go through your /etc/rc.d/rc.* files and
  660.    get rid of any daemons you don't use, like crond, lpd, or selection.
  661.  
  662.    If you've got 4 MB and you're getting 'virtual memory exceeded in new'
  663.    warnings, make sure you set up and activate a swap partition before running
  664.    setup. If you're really hard up on memory, you can boot a rootdisk using
  665.    'editroot' instead of one of the usual boot kernels. This will mount the 
  666.    floppy in the root drive, and you'll have to install from the other drive
  667.    or from the hard drive. You will also not be able to create any kind of boot
  668.    disk, so you'll have to install LILO and take your chances. I only suggest
  669.    using this approach if a swapfile will not work.
  670.  
  671. -----
  672.  
  673. Q32: How do I make a bootdisk that uses a custom kernel?
  674.  
  675. A: Look in the ./kernels subdirectory. You'll find complete instructions
  676.    on how to make them in there.
  677.  
  678. -----
  679.  
  680. Q33: When I installed Slackware, the system could see my CD-ROM just fine.  
  681.      But, when I try to boot using LILO or the bootdisk the system doesn't 
  682.      find the CD-ROM drive anymore!  How can I fix this?
  683.  
  684. A: The problem is probably that you used a bootdisk with support for your
  685.    CD-ROM drive, but didn't install a kernel with support.  
  686.  
  687.    If you're ready to try compiling a kernel, you can easily solve this problem
  688.    by compiling a custom kernel (see the section about compiling a Linux kernel)
  689.    or, you can load the CDROM driver in the form of a kernel module.  You can
  690.    do this by editing the /etc/rc.d/rc.modules file to load the module for your
  691.    CDROM drive the next time you boot.  
  692.  
  693.    Here's the section of the file that loads CDROM drive modules:
  694.  
  695.  # These modules add CD-ROM drive support.  Most of these drivers will probe
  696.  # for the I/O address and IRQ of the drive automatically if the parameters
  697.  # to configure them are omitted. Typically the I/O address will be specified
  698.  # in hexadecimal, e.g.: cm206=0x300,11
  699.  #
  700.  #/sbin/modprobe aztcd aztcd=<I/O address>
  701.  #/sbin/modprobe cdu31a cdu31a_port=<I/O address> cdu31a_irq=<interrupt>
  702.  #/sbin/modprobe cm206 cm206=<I/O address>,<IRQ>
  703.  #/sbin/modprobe gscd gscd=<I/O address>
  704.  #/sbin/modprobe mcd mcd=<I/O address>,<IRQ>
  705.  #/sbin/modprobe mcdx mcdx=<I/O address>,<IRQ>
  706.  #/sbin/modprobe optcd optcd=<I/O address>
  707.  # Below, this last number is "1" for SoundBlaster Pro, or "0" for a clone.
  708.  #/sbin/modprobe sbpcd sbpcd=<I/O address>,1
  709.  #/sbin/modprobe sonycd535 sonycd535=<I/O address>
  710.  #/sbin/modprobe sjcd sjcd=<I/O address>
  711.  
  712.    To use one of these, edit out the '#' in front of the line for your CDROM
  713.    drive.  If you know the I/O address and/or IRQ for your board, fill it in on
  714.    the line.  For example, you might change the sbpcd line to look like this if
  715.    you've got a SoundBlaster CDROM at 0x300:
  716.  
  717. /sbin/modprobe sbpcd sbpcd=0x300,1
  718.  
  719.    If you need to access your CDROM drive so that you can get the modules
  720.    package installed, use the same bootdisk you installed the system 
  721.    with to get into your machine.  Use a command like this on the LILO prompt,
  722.    but replace the root device name with the one you used on your machine:
  723.  
  724.    mount root=/dev/hda1
  725.  
  726.    Once you're logged in, install the modules package:
  727.  
  728.    installpkg /cdrom/slakware/a*/modules.tgz
  729.  
  730. -----
  731.  
  732. Q34: Can I install using a console on a serial port?
  733.  
  734. A:   Yes.  Most of the bootdisks included with Slackware include support for
  735.      putting the system console on a serial port.  To do this, you need to use
  736.      console=ttyS0 or console=ttyS1 (these examples would be for COM1: and
  737.      COM2:) as extra parameters on the bootdisk's boot prompt.
  738.  
  739.      For example, to install using a serial console, you would boot a bootdisk
  740.      such as bare.i and wait for it to stop at the boot prompt.  Then enter
  741.      this to boot the kernel using COM1 as the console:
  742.  
  743.      ramdisk console=ttyS0
  744.  
  745. ----
  746.  
  747. Q35: What does "Bus error" mean?
  748.  
  749. A:   Usually it means your machine has run out of RAM.  See if you can set up
  750.      some swap space or a swap file -- that should fix the problem.
  751.  
  752. ----
  753.  
  754. In addition, the LDP people have put out an excellent set of manuals for Linux.
  755. These are available on metalab.unc.edu in /pub/Linux/docs/LDP.
  756.  
  757. ---
  758. Patrick Volkerding
  759. volkerdi@slackware.com
  760.  
  761.